package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WorkAwardWinnersMapper;
import com.ruoyi.system.domain.WorkAwardWinners;
import com.ruoyi.system.service.IWorkAwardWinnersService;

/**
 * 获奖完成人Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-03
 */
@Service
public class WorkAwardWinnersServiceImpl implements IWorkAwardWinnersService 
{
    @Autowired
    private WorkAwardWinnersMapper workAwardWinnersMapper;

    /**
     * 查询获奖完成人
     * 
     * @param id 获奖完成人主键
     * @return 获奖完成人
     */
    @Override
    public WorkAwardWinners selectWorkAwardWinnersById(Long id)
    {
        return workAwardWinnersMapper.selectWorkAwardWinnersById(id);
    }

    /**
     * 查询获奖完成人列表
     * 
     * @param workAwardWinners 获奖完成人
     * @return 获奖完成人
     */
    @Override
    public List<WorkAwardWinners> selectWorkAwardWinnersList(WorkAwardWinners workAwardWinners)
    {
        return workAwardWinnersMapper.selectWorkAwardWinnersList(workAwardWinners);
    }

    /**
     * 新增获奖完成人
     * 
     * @param workAwardWinners 获奖完成人
     * @return 结果
     */
    @Override
    public int insertWorkAwardWinners(WorkAwardWinners workAwardWinners)
    {
        return workAwardWinnersMapper.insertWorkAwardWinners(workAwardWinners);
    }

    /**
     * 修改获奖完成人
     * 
     * @param workAwardWinners 获奖完成人
     * @return 结果
     */
    @Override
    public int updateWorkAwardWinners(WorkAwardWinners workAwardWinners)
    {
        return workAwardWinnersMapper.updateWorkAwardWinners(workAwardWinners);
    }

    /**
     * 批量删除获奖完成人
     * 
     * @param ids 需要删除的获奖完成人主键
     * @return 结果
     */
    @Override
    public int deleteWorkAwardWinnersByIds(Long[] ids)
    {
        return workAwardWinnersMapper.deleteWorkAwardWinnersByIds(ids);
    }

    /**
     * 删除获奖完成人信息
     * 
     * @param id 获奖完成人主键
     * @return 结果
     */
    @Override
    public int deleteWorkAwardWinnersById(Long id)
    {
        return workAwardWinnersMapper.deleteWorkAwardWinnersById(id);
    }
}
